<?php 
echo $this->headLink();
echo $this->headStyle();
echo $this->headScript();
?>
<style>
body {
	margin:0px !important;
}
</style>

<div id="topnav">
	<div id="topwrap">
		<div class="toolbar caption" id="toolbar">	
			<div class="navigation">
				<div class="desc">&nbsp;</div>
				<div class="path" id="curpath" title="/files"><b>/<span class="albumTitle"><?php echo $this->currentAlbum['name']?></span></b></div>
			</div>
			<ul class="icons" id="tools">
				<li class="icon" id="createdir"><a class="btnCreate" title="Create folder" href="#action">
					<img width="16" height="16" alt="" src="<?php echo $this->config->site->admin->imageUrl?>/media/newfolder.png">
						<span class="caption"><?php echo $this->translate('admin_media_create_folder')?></span>
				</a></li>
				<li class="icon" id="upload"><a class="btnUpload" title="<?php echo $this->translate('admin_media_upload')?>"  href="#action"><img width="16" height="16" alt="" src="<?php echo $this->config->site->admin->imageUrl?>/media/add.png">
					<span class="caption"><?php echo $this->translate('admin_media_upload')?></span>
				</a></li>			
			</ul>
		</div>

		<br style="clear:both;"><br>
	</div>
</div>	
<div id="listcontainer">
	<div id="folders">
		<div>
			<h2><?php echo $this->translate('admin_media_album_menu')?></h2>				
			<ul class="folders" id="folder_list">
				<?php
				if (sizeof($this->arrAlbum) > 0) { 
					foreach ($this->arrAlbum as $item) {
						echo '<li class="folder">
								<a title="'.$item['name'].'" rel="'.$item['id'].'" 
								href="javascript:void(0);">'.$item['name'].'</a>
							 </li>';						
					}
				} else echo '<li class="folder">No album</li>';					
				?>					
			</ul>				
		</div>
	</div>
	
	<div id="viewcontainer">
		<div style="float:left">
			<h3 style="margin: 0">Album : <span class="albumTitle"><?php echo $this->currentAlbum['name']?></span>&nbsp;&nbsp;&nbsp;<span class="progress"></span></h3>				
			<input type="hidden" name="albumId" id="albumId" value="<?php echo $this->currentAlbum['id']?>">
		</div>			
		<br style="clear:both">
		<div id="filelist" style="overflow: auto; height: 400px">	
		</div>
	</div>
	<br style="clear:both">
</div>
